package com.cdgeekcamp.redas.wechat.entity;

/**
 * 消息基类
 */
public abstract class MessageBaseEntity {
    // 发送方帐号
    protected String FromUserName;
    // 接受方帐号
    protected String ToUserName;
    // 消息创建时间
    protected Long CreateTime;
    /**
     * 消息类型
     * text 文本消息
     * image 图片消息
     * voice 语音消息
     * video 视频消息
     * music 音乐消息
     * event 事件消息
     */
    protected String MsgType;

    public MessageBaseEntity() {
    }

    public MessageBaseEntity(String fromUserName, String toUserName, Long createTime, String msgType) {
        FromUserName = fromUserName;
        ToUserName = toUserName;
        CreateTime = createTime;
        MsgType = msgType;
    }

    /**
     *  回复微信消息
     */
    public abstract String doReply();

    public String getFromUserName() {
        return FromUserName;
    }

    public void setFromUserName(String fromUserName) {
        FromUserName = fromUserName;
    }

    public String getToUserName() {
        return ToUserName;
    }

    public void setToUserName(String toUserName) {
        ToUserName = toUserName;
    }

    public Long getCreateTime() {
        return CreateTime;
    }

    public void setCreateTime(Long createTime) {
        CreateTime = createTime;
    }

    public String getMsgType() {
        return MsgType;
    }

    public void setMsgType(String msgType) {
        MsgType = msgType;
    }
}
